<?php
$url = "http://218.76.51.168";
// http://url:8088/V0/GetDept.ashx?
$url = $url . ":8088/V0/GetDept.ashx?";
$url = "http://115.238.169.185/index.php?g=Api&m=GoodsApi&a=get_goods_inventory";
echo "<form action='$url' method=post enctype=multipart/form-data>";
header("Content-type: text/html; charset=UTF-8");
$time = "1536989387";
$sign = "0386e8a3ae0d38edae75df56c5ecb3cd";

/* request={
"password":"216A6BEE63F71467
"partner":"YAYS0001",
"data":[
{
"sellerPath":"68120001"
},
{
"sellerPath":"68120002"
}
],
"sign":"0386e8a3ae0d38edae75df56c5ecb3cd",
"TimeStamp":"1536989387"
} */

$data['system']        = 'LM';
$data['DistributorId'] = 122;
$data['pageRows']      = 10;
$data['pageSum']       = 1;
$signStr               = get_sign_str($data);
function get_sign_str($params)
{
    ksort($params);
    $paramStr = serialize($params) . 'fx.seabuy.com';
    echo "paramStr=".$paramStr;
    return md5($paramStr);
}
$data['signStr'] = $signStr;
var_dump(http_build_query($data));
 
$Message = http_build_query($data);

//
echo $Message;

 

echo "<input type='hidden' name='Message' value=$Message>";

echo "     <input type=submit name='sub1' value=test>
         </form> ";
if (isset($_POST['sub1'])) {
    print_r($_POST);

}
